DIR = /usr/lib/ocf/resource.d/rahul
default:
	@echo 'Try:'
	@echo ''
	@echo "make install     install into '$(DIR)'"
	@echo 'make diff        diff current and installed versions'
	@echo 'make symlinks    make symlinks'

.PHONY: install default diff symlinks

install: $(DIR)/capture

$(DIR)/capture: capture
	perl -cw capture
	mkdir -p $(DIR)
	install -m 555 $< $@

diff:
	diff -u $(DIR)/capture capture

symlinks:
	perl -cw capture
	$(DIR)/capture -s
